package com.wen.springboot_db_20210510.service;

import com.wen.springboot_db_20210510.beans.UserInfo;

import java.util.List;

public interface IUserService {
    //通过id查询

    UserInfo getUserById(int id);

    //根据卡号查询
    UserInfo getUserByCardno(String cardno);

    //新增人员
    int  insertUser(String cardno,String psname);

    //查询全部
    List<UserInfo> getAllUser();

    //删除人员信息
    int deleteById(Integer id);

    //更新信息
    int updateUser( int id, String cardno, String psname);
}
